#! /usr/bin/python
# -*- coding: cp1250 -*-
#import sys; sys.path.append(r'C:/xxx/yyy')

import re
import string
import pepe.p_network.url as url
import pepe.p_txt.bigtxt as bt


if __name__ == '__main__':

    for line in bt.lines('links.txt'):
        line = re.sub('\n', '', line)
        if line <> "":
            link, title = string.split(line, '|')

            print title
            
            u = url.Url()
            u.get(link)
            u.saveAsFile('%s.mp3'%(title))
